﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using GameBase;

namespace GalaxyPresident
{
    public class DeathPlanet : Planet
    {
        public DeathPlanet(string name,string strImage, float diameter, float velocity, Orbit orbit)
            : base(name,strImage, diameter, velocity, orbit)
        {           
        }

        protected override void initAtmosphereAndLand()
        {
            base.initAtmosphereAndLand();

            landColor = Constant.starColors[Constant.random.Next(Constant.starColors.Length)];
            landColor = Color.Lerp(landColor, Color.Firebrick, 0.2f);
            BackColor = landColor;

            atmospherColor = Constant.starColors[Constant.random.Next(Constant.starColors.Length)];
            atmospherColor = Color.Lerp(atmospherColor, landColor, 0.5f);
            atmospherColor = Color.Lerp(atmospherColor, Color.White, 0.5f);

        }

        protected override void initBlock()
        {
            for (int i = 0; i < blockCount; i++)
                _blocks.Add(new DeathBlock(this, i));
        }
    }
}
